From: Jim Blandy Date: Mon, 24 May 1993 15:57:15 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~96041 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=6a7a4c074e3f5502c3852b010c74f19a99d6081a;p=emacs.git *** empty log message *** --- diff --git a/src/alloca.c b/src/alloca.c index bc34529fdd2..30efa5ae663 100644 --- a/src/alloca.c +++ b/src/alloca.c @@ -60,6 +60,17 @@ typedef char *pointer; #define NULL 0 +/* Different portions of Emacs need to call different versions of + malloc. The Emacs executable needs alloca to call xmalloc, because + ordinary malloc isn't protected from input signals. On the other + hand, the utilities in lib-src need alloca to call malloc; some of + them are very simple, and don't have an xmalloc routine. + + Everybody else should just call malloc. */ +#ifndef emacs +extern pointer malloc (); +#endif + /* Define STACK_DIRECTION if you know the direction of stack growth for your system; otherwise it will be automatically deduced at run-time.